<?php
// 外观模式
// 将多个系统组成为一个界面，界面内部调用多个系统的方法

class SystemA {public function operationA() {}}
class SystemB {public function operationB() {}}
class SystemC {public function operationC() {}}

class Facade
{
	protected $systemA;
	protected $systemB;
	protected $systemC;

	public function __construct()
	{
		$this->systemA = new SystemA;
		$this->systemB = new SystemB;
		$this->systemC = new SystemC;
	}

	public function operation()
	{
		$this->systemA->operationA();
		$this->systemB->operationB();
		$this->systemC->operationC();
	}
}

$facade = new Facade;
$facade->operation();